package design.patterns.behavioral.templatemethod;

/**
 * @author gjx
 * @version v1.0
 * @Description
 * @date 2019/4/10 13:49
 */
public class MyCustomCalculator1 extends  CustomCalculator {
    @Override
    protected void save(int a) {
        System.out.println("存储到硬盘中...");
    }

    @Override
    protected void show(int a) {
        System.out.println("计算结果是，"+a);
    }

    @Override
    protected boolean needShow(){
        return true;
    }
}
